package cn.tedu.qxhouserent.house.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@Accessors(chain = true)
@TableName("new_house")
public class NewHouse implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @JsonFormat
    private LocalDate openingTime;
    @JsonFormat
    private LocalDate timeOfDelivery;
    private Integer termOfOwnership;
    private Long houseId;
}
